﻿using AutoMapper;
using PMIS.Shared.DTO;
using PMIS.WebApi.Model;

namespace PMIS.WebApi
{
    public class AutoMapperProfile : Profile
    {
        public AutoMapperProfile()
        {
            CreateMap<Menu, MenuDto>().ReverseMap();
            CreateMap<DataDict, DataDictDto>().ReverseMap();
            CreateMap<Role, RoleDto>().ReverseMap();
            CreateMap<User, UserDto>().ReverseMap();
            CreateMap<Department, DepartmentDto>().ReverseMap();
        }
    }
}
